import { http } from "@/uni-sub-base/service/request.js"
let serviceName = "SiteMessage/"
import { getBaseUrl } from "@/utils/appUrls.js"
export function UpdateCheckSiteMessageTime(data, path) {
    return http.post({
        url: getBaseUrl() + serviceName + "UpdateCheckSiteMessageTime" + path,
    })
}
//获取消息列表
export function getInfoListByBusinessId(data, path) {
    return http.post({
        url: getBaseUrl() + serviceName + "GetSiteMessagePage" + path,
        data,
    })
}

//获取消息详情
export function GetInfo(data, path) {
    return http.post({
        url: getBaseUrl() + serviceName + "GetSiteMessageInfo" + path,
        data,
    })
}

//添加浏览记录和浏览量
export function AddVisitMsg(data, path) {
    return http.post({
        url: getBaseUrl() + serviceName + "AddVisitMsg" + path,
        data,
    })
}
